package day9;

public class Parent {
    public Parent(){

    }
    public Parent(int a){
        System.out.println("Parent");
    }
}

class Child extends Parent {
    //默认无参构造->第一行代码也是super()
    public Child(){
        //super();
        //super
        //super(10);
        //this();
        System.out.println("Child");
    }
}

class Son extends Child {
    public Son(){
        super();
        System.out.println("运行Son构造");
    }
    public static void main(String[] args) {
        new Son();
    }
}
